package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 不同类型，需要排除或参与的数据，如：人教版学员不参与率的计算，待转校学生
 * </p>
 *
 * @author hpiggy
 * @since 2024-01-08
 */
@TableName("student_for_data")
@ApiModel(value = "StudentForData对象", description = "不同类型，需要排除或参与的数据，如：人教版学员不参与率的计算，待转校学生")
@Data
public class StudentForData implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("当前所在学校id")
    private Long schoolId;

    @ApiModelProperty("科目")
    private Long subjectsId;

    private Integer yearPart;

    private Integer quarterNum;

    private Integer lessonType;

    @ApiModelProperty("学生id")
    private Long studentId;

    private Integer yearClassId;

    private Long dataTypeId;

    //
    private Integer status;

    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @TableLogic
    private Integer deleted;

    @TableField(exist = false)
    private String studentName;

    @TableField(exist = false)
    private String schoolName;

    @TableField(exist = false)
    private String quarterName;

    @TableField(exist = false)
    private String subjectsName;

    @TableField(exist = false)
    private String headImg;

    @TableField(exist = false)
    private String teacherName;

    @TableField(exist = false)
    private String yearClassName;

    @TableField(exist = false)
    private String gradeName;

    @TableField(exist = false)
    private List<Long> idList;
}
